const CryptoJS = require("crypto-js");

// const hash = CryptoJS.MD5('你想要加密的字符串').toString();

let a = (new Date).getTime();
// console.log(a);
let t = "asdjnjfenknafdfsdfsd";
let d = "fanyideskweb";
let u = "webfanyi";

function md5(e) {
    let hash = CryptoJS.MD5(e).toString();
    // return i.createHash("md5").update(e.toString()).digest("hex")
    return hash;
}

let str = `client=${d}&mysticTime=${a}&product=${u}&key=${t}`
// console.log(str);

function code_md5(str){
    return md5(str);
}
console.log(str)

// function S(a, t) {
//     return md5(`client=${d}&mysticTime=${a}&product=${u}&key=${t}`)
// }

// let sign = code_md5(str);
// console.log(sign);